package pr.iceworld.fernando.springbatchlearning.entity;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import lombok.Data;

/**
 * Created by ferna on 2018/10/17.
 */
@TableName("users")
@Data
public class Users {
    @TableField("id")
    private Integer id;
    @TableField("name")
    private String name;
    @TableField("age")
    private Integer age;
    @TableField("description")
    private Integer description;

    public Users(Integer id, String name, Integer age, Integer description) {
        this.id = id;
        this.name = name;
        this.age = age;
        this.description = description;
    }

    @Override
    public String toString() {
        return "Users{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", age=" + age +
                ", description=" + description +
                '}';
    }
}
